﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HZY.Framework.MessageQueue.Models
{
    public class MessageQueueContext
    {
        public MessageQueueContext(string key, object message, Action<object, IServiceProvider> call)
        {
            Key = key;
            Message = message;
            Call = call;
        }

        /// <summary>
        /// 队列主键
        /// </summary>
        public string Key { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public object Message { get; set; }

        /// <summary>
        /// 队列回调函数
        /// </summary>
        public Action<object, IServiceProvider> Call { get; set; }

    }
}
